{include file=$header_start}
{strip}
<script type="text/javascript" src="{$siteroot}/includes/js/admin/checkall.js" /></script>
{/strip}
{include file=$header_end}
{literal}
<script type="text/javascript">
$(function(){
$(".someClass").tipTip();
});

$(function(){
$(".someClass").tipTip({maxWidth: "auto", edgeOffset: 10});
});
</script>
{/literal}
 <div class="contain">

      {include file=$left_menu}
      
      <div class="right_contain">
        
         <div class="heading_box">Manage Inquiry <a href="javascript:;" class="someClass" title="{$moduelArray.module_help_text}" style="float:right;"><img src="{$siteroot}/templates/admin/img/topic_icon6.png" /></a></div>
         <div class="whitebox">
         
         <!--Message Div Start-->
         {if $msg}
         <div class="masg_div">
         	{$msg}
         </div>
         {/if}
         <!--Message Div End-->
         
         <div>
          <!--Form Contain start-->
           
           <div class="table_viewbox">
            <!--<h2>Table Design</h2>-->
            <form name="searchFrm" id="searchFrm" method="post" action="{$siteroot}/admin/home.php?q=contact">
            <input type="hidden" id="hidden_pageno" name="hidden_pageno" value="{$page}"/> 
            	<table width="100%" border="0" cellpadding="3" cellspacing="5">
                	<tr>
                    	<td align="left"></td>
                        <td align="right">
                        
                        &nbsp;<input type="text" name="search" id="search" class="input41" value="{if $search neq ''}{$search}{else}Search By Name{/if}" onfocus="this.value=''" onblur="if(this.value=='')this.value='Search By Name'" />&nbsp;<input type="submit" name="add" id="add" value="Search" class="admin_btn" />&nbsp;<input type="button" name="add" id="add" value="Clear" class="admin_btn" onclick="javascript: window.location='{$siteroot}/admin/home.php?q=contact';" /></td>
                    </tr>
                </table>
            </form>
            

            <form name="frm" id="frm" action="" method="post" >
             <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_viewbox">
              <tr>
                <th width="5%" align="center">#</th>
                <th width="2%"><input type="checkbox" name="check" id="check"  /></th>
                <th width="20%">Name</th>
               <!-- <th width="20%">Subject</th>-->
                <th width="10%">Status</th>
                <th width="10%">Admin Reply</th> 
                <th width="18%">Email</th>
                <th width="16%">Action</th>
              </tr>
              {if $contactArray}
              {section name=i loop=$contactArray}
              <tr class="inactiverow" id="tr_{$contactArray[i].id}">
                <td align="center">{$newid}</td>
                <td><input type="checkbox" name="checkall[]" id="checkall_{$smarty.section.i.iteration}" value="{$contactArray[i].id}" /></td>
                {if $contactArray[i].status eq unanswered}
                <td>
               <strong><a href="{$siteroot}/admin/home.php?q=detail_contact&id={$contactArray[i].id|base64_encode}&page={$page}">{$contactArray[i].name}</a></strong>
                </td>
                {else}
                 <td>
                <a href="{$siteroot}/admin/home.php?q=detail_contact&id={$contactArray[i].id|base64_encode}&page={$page}">{$contactArray[i].name}</a>
                </td>
                {/if}
                <!--<td>{$contactArray[i].subject}</td>-->
                <td>{$contactArray[i].readflag}</td>
                <td>{$contactArray[i].status}</td>
                <td>{$contactArray[i].email_id}</td>
                
                <td>
                   
                  	
                     <span><a href="{$siteroot}/admin/home.php?q=detail_contact&id={$contactArray[i].id|base64_encode}&page={$page}"><img src="{$siteroot}/templates/admin/img/reply_icon.gif" title="Inquiry Reply" /></a></span>
                    <span><a href="{$siteroot}/admin/home.php?q=reply&id={$contactArray[i].id|base64_encode}&page={$page}"><img src="{$siteroot}/templates/admin/img/icon-search.png" title="View Reply" /></a></span>
                    <span><a href="{$siteroot}/admin/home.php?q=contact&id={$contactArray[i].id|base64_encode}&action=delete&page={$page}" onclick="javascript:return confirm('Are you sure do you want to delete this record?');"><img src="{$siteroot}/templates/admin/img/icon-delete.png" title="Delete Inquiry"/></a></span>
                </td>
              </tr>
              <!-- {$newid++} -->
              {/section}
              {else}
              <tr>
               <td colspan="7" align="center" class="error">Record Not Found</td>
              </tr>
              {/if}
               <tr>
                <td colspan="7">
                {if $contactArray} 
                <div class="select_box">
                <select name="action" id="action" class="input width">
                  <option value="">Select</option>
                  <option value="read">Read</option>
                  <option value="unread">Unread</option>
                  <option value="delete">Delete</option>
                  </select>&nbsp;<input type="submit" class="admin_btn" value="Go" name="go" id="go" /><div id="errormsg" class="error"></div> 
                  
                  </div>
                  {/if}
                  <div class="pagination">
                  {if $pagination}{$pagination}{/if}
                  </div>
                   </td>
                  
              </tr>
            </table>
</form>
            

         </div>
            <!--Form Contain end--> 
          
         </div>
         
         
         </div>
        </div>
      
      
      <!--right_contain end-->
      <div class="clear"></div>
    </div>
    
{include file=$footer}